﻿using System;
class TriangleSurface
{
    static int TrianlSurface(int side, int altitude)
    {
        int surface = ((side * altitude) / 2);
        return surface;
    }
    static double TrianlSurface(int sideOne, int sideTwo, int sideTrhee)
    {
        int semiper = ((sideOne + sideTwo + sideTrhee) / 2);
        double surface = Math.Sqrt(semiper * (semiper - sideOne) * (semiper - sideTwo) * (semiper - sideTrhee));
        return surface;
    }
    static double TrianlSurface(int sideOne, int sideTwo, double angle)
    {
        double surface = (((sideOne * sideTwo) * Math.Sin(angle)) / 2);
        return surface;
    }
    static void Main()
    {
        Console.Write("side with side and attitude 10 and 20: ");
        double result = TrianlSurface(10,20);
        Console.WriteLine(result);
        Console.Write("side with trhee sides: ");
        result = TrianlSurface(5, 5, 5);
        Console.WriteLine(result);
        Console.Write("side with two sides and angle: ");
        result = TrianlSurface(10, 10, 120d);
        Console.WriteLine(result);

        Console.ReadLine();
    }
}

